WeDevs\Wpuf\Lib\Gateway\Paypal D

Total Complexity 299
Dependencies 2
Dependents 3
Total lines 2,059
Lines of code 1,515
Logical lines of code 622
Comment lines 272
Methods 35
Properties 7

Methods 35

Method Rating Maintainability Complexity Lines of code
prepare_to_send()
D
20
40 235
process_subscription_payment()
C
31 29 107
handle_subscription_created()
C
34 26 77
handle_paypal_return()
B
37 21 73
cancel_subscription()
B
34 16 92
handle_subscription_activated()
B
38 15 66
process_webhook()
B
40 15 63
get_or_create_plan()
A
34 11 100
check_paypal_return()
A
51 15 22
process_payment_capture()
A
39 12 64
handle_subscription_return()
A
48 11 32
handle_webhook_request()
A
48 11 30
verify_webhook_signature_from_input()
A
42 9 53
paypal_settings_update_notice()
A
41 4 89
get_or_create_product()
A
47 7 36
handle_pending_payment()
S
56 7 16
handle_subscription_cancelled()
S
47 5 37
payment_options()
S
38 1 87
get_payer_info()
S
56 5 18
get_error_page_url()
S
59 5 14
get_pack_id_by_subscription()
S
57 4 18
get_access_token()
S
54 3 21
inject_webhook_css()
S
60 3 17
dismiss_paypal_notice()
S
63 4 10
create_trial_payment_record()
S
53 2 22
get_user_id_by_subscription()
S
56 2 22
register_webhook_endpoint()
S
58 2 17
handle_payment_features()
S
65 3 8
update_coupon_usage()
S
65 3 9
__construct()
S
54 1 20
get_pages_dropdown()
S
66 2 8
subscription_cancel()
S
66 2 8
get_webhook_events_notice()
S
62 1 13
clean_up_transients()
S
80 1 3
get_paypal_allowed_hosts()
S
69 1 8